﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class TinaXUIKitOpenUIParamWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(TinaX.UIKit.OpenUIParam);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7);
			
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIName", _g_get_UIName);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UseMask", _g_get_UseMask);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CloseByMask", _g_get_CloseByMask);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaskColor", _g_get_MaskColor);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIRoot", _g_get_UIRoot);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "xBehaviour", _g_get_xBehaviour);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DependencyInjection", _g_get_DependencyInjection);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "UIName", _s_set_UIName);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "UseMask", _s_set_UseMask);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "CloseByMask", _s_set_CloseByMask);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "MaskColor", _s_set_MaskColor);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "UIRoot", _s_set_UIRoot);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "xBehaviour", _s_set_xBehaviour);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "DependencyInjection", _s_set_DependencyInjection);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new TinaX.UIKit.OpenUIParam();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to TinaX.UIKit.OpenUIParam constructor!");
            
        }
        
		
        
		
        
        
        
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.UIName);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UseMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UseMask);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CloseByMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.CloseByMask);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_MaskColor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.MaskColor);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIRoot(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.UIRoot);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_xBehaviour(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.xBehaviour);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DependencyInjection(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DependencyInjection);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_UIName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.UIName = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_UseMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.UseMask = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_CloseByMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.CloseByMask = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_MaskColor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                System.Nullable<UnityEngine.Color> gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.MaskColor = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_UIRoot(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.UIRoot = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_xBehaviour(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.xBehaviour = (TinaX.XComponent.XBehaviour)translator.GetObject(L, 2, typeof(TinaX.XComponent.XBehaviour));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DependencyInjection(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                TinaX.UIKit.OpenUIParam gen_to_be_invoked = (TinaX.UIKit.OpenUIParam)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.DependencyInjection = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
		
		
		
		
    }
}
